package com.xianyv.controller;

import com.xianyv.common.Result;
import com.xianyv.service.AttendanceService;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDate;

@Slf4j
@RestController
@RequestMapping("/attendance")
public class AttendanceController {

    @Autowired
    private AttendanceService attendanceService;

    @GetMapping
    public Result getAttendance(int pageNo, int pageSize, @DateTimeFormat(pattern = "yyyy-MM-dd") LocalDate date, String search){

        log.info("date:{} search:{}",date,search);



        return null;
    }
}
